import Vue from 'vue';
import VueRouter from 'vue-router';
import routes from './routes/routes'
import store from './store'

Vue.use(VueRouter);

VueRouter.prototype.goBack = function () {
    store.commit('setTransition', 'turn-off')
    window.history.go(-1)
}


let router = new VueRouter({
    routes
})
VueRouter.prototype.pushTrasnlate = function (options) {
    store.commit('setTransition', 'turn-on')
    router.push(options)
}
export default router;